
class math{
    public  int fib(int n)
    {
        int[] f = new int[n];
        f[0]=f[1]=1;
        if(n<=0)
        {
            return 0;
        }
        else
        {
            return fib(n-1)+fib(n);
        }
    }
}

public class test {

    public static void main(String[] args) {
      math f = new math();
       int a = f.fib(5);
        System.out.println(a);
    }
}
